package com.zgh.leo.signin611.resetting;
//修改签名
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import android.widget.Toolbar;

import com.zgh.leo.signin611.R;

public class resignature extends AppCompatActivity implements View.OnClickListener {
    private Button Publish;
    private EditText Signuature;
    private Toolbar toolbar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_resignature);
        Publish = (Button)findViewById(R.id.button1);
        Signuature = (EditText)findViewById(R.id.signature);
        //toolbar=(Toolbar) findViewById(R.id.toolbar);
        // toolbar.setTitle("个性签名");
        Publish.setOnClickListener(this);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();//finish();
    }//activity返回

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.button1:
                String inputText=Signuature.getText().toString();
                Toast.makeText(resignature.this,"publish successful!",Toast.LENGTH_SHORT).show();
        }
    }
}
